﻿using HardcoreGame.Common.Systems;
using Microsoft.Xna.Framework;
using Terraria.GameContent;
using Terraria.Map;
using Terraria.ModLoader;

namespace HardcoreGame.Common.GlobalPylons.EventPylon
{
    public class EventPylon : GlobalPylon
    {
        public override bool PreDrawMapIcon(ref MapOverlayDrawContext context, ref string mouseOverText, ref TeleportPylonInfo pylonInfo, ref bool isNearPylon, ref Color drawColor, ref float deselectedScale, ref float selectedScale)
        {
            if (EventSystem.activeEvents.Contains(3))
            {
                return false;
            }
            return base.PreDrawMapIcon(ref context, ref mouseOverText, ref pylonInfo, ref isNearPylon, ref drawColor, ref deselectedScale, ref selectedScale);
        }
    }
}
